import 'package:flutter/material.dart';

class BaselineDemo extends StatefulWidget {
  @override
  _BaselineDemoState createState() => _BaselineDemoState();
}

class _BaselineDemoState extends State<BaselineDemo> {
  @override
  Widget build(BuildContext context) {
    return Container(
      color: Colors.white,
      child: Row(
        mainAxisAlignment: MainAxisAlignment.spaceBetween,
        children: <Widget>[
          Baseline(
            baseline: 50.0,
            baselineType: TextBaseline.alphabetic,
            child: Text(
              'TjTjTj',
              style: new TextStyle(
                fontSize: 20.0,
                textBaseline: TextBaseline.alphabetic,
              ),
            ),
          ),
          Baseline(
            baseline: 50.0,
            baselineType: TextBaseline.alphabetic,
            child: Container(
              width: 30.0,
              height: 30.0,
              color: Colors.red,
            ),
          ),
          Baseline(
            baseline: 50.0,
            baselineType: TextBaseline.alphabetic,
            child: Text(
              'RyRyRy',
              style: TextStyle(
                fontSize: 35.0,
                textBaseline: TextBaseline.alphabetic,
              ),
            ),
          ),
        ],
      ),
    );
  }
}
